package com.diamond.core.entity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * excel导入 结果
 * @author Diamond
 *
 */
public class ImportResult extends Result{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public int count;
	public List<String[]> failedRow = new ArrayList<String[]>();
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public List<String[]> getFailedRow() {
		return failedRow;
	}
	public void setFailedRow(List<String[]> failedRow) {
		this.failedRow = failedRow;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public void addFailedRow(String[] row, String faileRemark) {
		String[] newArr = Arrays.copyOf(row, row.length+1);
		newArr[row.length]=faileRemark;
		this.addFailedRow(newArr);
	}
	private void addFailedRow(String[] row) {
		this.failedRow.add(row);
	}
	
}
